/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 三包例外配件维护列表
export const exceptionPartRecord = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/exceptionPartRecord`, { params });

//新增
export const addThreeException = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/addThreeException`, params);
//配件列表
export const getTmPartFacList = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/getTmPartFacList`, { params });
//删除
export const delExceptionPart = params => axios.delete(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/delExceptionPart/${params.exceptionId}`);
//更新状态
export const updateStatus = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/updateStatus`, params);

// 导出
export const exportData = params =>
  axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/exportExceptionPartRecord`, {
    params,
    responseType: 'blob'
  });
